# -*- coding: UTF-8 -*-

"""Nickserv Identify Module for Pyrc"""

ns_name = "NickServ"
ns_req  = "This nickname is" 
ns_ide  = "identify %s"
ns_nick = "brufolo"
ns_pass = "provabot"

def do_identify(pyrc,umask,dest,message):
    if pyrc.me == ns_nick:
        pyrc.msg(umask[0],ns_ide % ns_pass)
        
events = [
    ['NOTICE','(%s)!.+' % ns_name , '(.+)' , '%s(.+)' % ns_req , do_identify],
]
